package org.iabako.server.conf;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.ImportResource;
import org.springframework.scheduling.annotation.EnableScheduling;

/**
 * Created by jose on 17/11/14.
 */
@Configuration
@EnableScheduling
@ImportResource("classpath:/org/iabako/conf/properties-config.xml")
public class AppConf {

    @Value("${server_url}")
    private String serverUrl;

    @Value("${client_service_email}")
    private String clientServiceEmail;

    @Value("${no_reply_email}")
    private String noReplyEmail;

    @Value("${email_personal_from}")
    private String emailPersonalFrom;

    @Value("${paypal_api_url}")
    String payPalAPIUrl;

    @Value("${paypal_api_user}")
    String payPalAPIUser;

    @Value("${paypal_api_password}")
    String payPalAPIPassword;

    @Value("${paypal_api_signature}")
    String payPalAPISignature;

    @Value("${paypal_api_version}")
    String payPalAPIVersion;

    @Value("${paypal_api_tx_search_method}")
    String payPalAPITransactionMethod;

    public String getClientServiceEmail() {
        return clientServiceEmail;
    }

    public String getNoReplyEmail() {
        return noReplyEmail;
    }

    public String getEmailPersonalFrom() {
        return emailPersonalFrom;
    }

    public String getServerUrl() {
        return serverUrl;
    }

    public String getPayPalAPIUrl() {
        return payPalAPIUrl;
    }

    public String getPayPalAPIUser() {
        return payPalAPIUser;
    }

    public String getPayPalAPIPassword() {
        return payPalAPIPassword;
    }

    public String getPayPalAPISignature() {
        return payPalAPISignature;
    }

    public String getPayPalAPIVersion() {
        return payPalAPIVersion;
    }

    public String getPayPalAPITransactionMethod() {
        return payPalAPITransactionMethod;
    }
}
